package org.example.demos.pattern.observer;

public class Observer2 implements Observer{
    @Override
    public void response(int state) {
        if (state==1){
            System.out.println("Observer2");
        }else{
            System.out.println("Observer2222");
        }
    }
}
